package com.aggron.service;

import com.aggron.bean.PageQuery;
import com.aggron.bean.PageResult;
import com.aggron.entity.SysRole;
import com.aggron.params.RoleParams;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuhuan
 * @since 2018-06-02
 */
public interface ISysRoleService extends IService<SysRole> {

    void save(RoleParams roleParams);

    void update(RoleParams roleParams);

    /**
     * 分页查询角色
     * @param pageQuery
     * @param roleParams
     * @return
     */
    PageResult<Map<String,Object>> pageRole(PageQuery pageQuery, RoleParams roleParams);
}
